package com.xiaohe66.web.domain.birth.repository;

import com.xiaohe66.common.value.Paging;
import com.xiaohe66.web.domain.account.value.AccountId;
import com.xiaohe66.web.domain.birth.agg.Birthday;
import com.xiaohe66.web.domain.birth.value.BirthdayId;
import com.xiaohe66.web.integration.domain.Repository;

import java.util.List;

/**
 * @author xiaohe
 * @since 2023-07-12 15:41
 */
public interface BirthdayRepository extends Repository<Birthday, BirthdayId> {

    void updateNextBirth();

    List<Birthday> list(AccountId createId, Paging paging);

    List<Birthday> listAfterDay(AccountId createId, int day);

}
